import type { App } from 'vue'
import * as BusinessComponents from '@/components/Business'

export const setupBusiness = (app: App<Element>): void => {
  // 注册所有 Business 组件为全局组件，添加 zy 前缀
  Object.entries(BusinessComponents).forEach(([name, component]) => {
    app.component(`Zy${name}`, component)
  })
}
